package org.ljy.lotterysystem.service.dto;

import lombok.Data;
import org.ljy.lotterysystem.service.enums.ActivityStatusEnum;

import java.io.Serializable;

@Data
public class ActivityDTO implements Serializable {

    /**
     * 活动id
     */
    private Long activityId;

    /**
     * 活动名称
     */
    private String activityName;
    /**
     * 活动描述
     */
    private String description;

    private ActivityStatusEnum status;

    /**
     * 判断活动是否有效
     */
    public Boolean valid() {
        return status.equals(ActivityStatusEnum.RUNNING);
    }

}
